package com.credithc.customers.base.ro;


import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

import java.util.List;

/**
 * @Title: 客户角色关系ro
 * @Author: Denghx
 * @Date: 2018/12/3 22:44
 * @Description: com.credithc.customers.api.ro
 * @Version: V1.0.0
 */
@Data
public class CustomerRelationRo extends CustomerBaseRo {

    private List<CustomerRelationDetailRo> roles;

    public static void checkBaseParam(CustomerRelationRo ro) {
        CustomerUtils.checkRequestNo(ro.getRequestNo());
        List<CustomerRelationDetailRo> details = ro.getRoles();
        for(CustomerRelationDetailRo detail : details){
            CustomerRelationDetailRo.checkBaseParam(detail);
        }
    }
}
